const PAYMENT_STATUS = {
  1: '待支付',
  2: '支付成功',
  3: '已到账',
  4: '退款中',
  5: '已退款',
  6: '已退款到账',
  7: '取消',
}
const BUS_MODEL = {
  1: '批发采购',
  2: '长期寄售',
  3: '手术跟台',
  4: '长期寄售消耗',
  5: '寄售补仓',
  6: '报台',
  7: '短期/消耗单',
  8: '退货',
  9: '换货',
  10: '其他',
  11: '长期寄售销货单'
}
const PAY_USE = {
  1: '货款',
  2: '押金'
}
const ISDELAYPAY_TYPE = {
  2: '无账期',
  1: '有账期',
}
export const columns = [{
    'min-width': '200',
    prop: 'orderCode',
    label: '订单编号',
    'show-overflow-tooltip': true
  },
  //缺此字段
  {
    'min-width': '200',
    prop: 'payCode',
    label: '支付订单编号',
    'show-overflow-tooltip': true
  },
  {
    'min-width': '120',
    prop: 'orderType',
    label: '订单类型',
    'show-overflow-tooltip': true
  }, {
    'min-width': '120',
    prop: 'paymentStatus',
    label: '支付状态',
    formatter: row => (PAYMENT_STATUS[Number(row.paymentStatus)])
  },
  // {
  //   'min-width': '120',
  //   prop: 'remittanceOrderNo',
  //   label: '汇款单号'
  // },
  {
    'min-width': '200',
    prop: 'payeeCompanyName',
    label: '收款方名称',
    'show-overflow-tooltip': true
  },
  //字段待定
  {
    'min-width': '200',
    prop: 'payeeUnifiedSocialCreditCode',
    label: '收款方统一信用代码',
    'show-overflow-tooltip': true
  },
  // {
  //   'min-width': '200',
  //   prop: 'payeeAccNo',
  //   label: '收款方银行账号',
  //   'show-overflow-tooltip': true
  // },
  {
    width: '120',
    prop: 'orderAmount',
    label: '订单金额（元）',
    formatter: row => row.orderAmount === null ? '待定' : row.orderAmount,
  },
  {
    width: '120',
    prop: 'paymentPrice',
    label: '实付金额（元）'
  },

  {
    width: '100',
    prop: 'payUse',
    label: '支付用途',
    formatter: row => (PAY_USE[Number(row.payUse)])
  },
  {
    width: '160',
    prop: 'paymentDate',
    label: '支付时间'
  },
  // {
  //   width: '160',
  //   prop: 'toAccountDate',
  //   label: '到账时间'
  // },
  {
    width: '160',
    prop: 'orderDate',
    label: '订单下单时间'
  },
  {
    width: '120',
    prop: 'isDelayPay',
    label: '标签',
    formatter: row => (ISDELAYPAY_TYPE[Number(row.isDelayPay)])
  },
  // {
  //   minWidth: '200',
  //   prop: 'action',
  //   label: '操作',
  //   fixed: 'right'
  // }
];
export const tabArr = [{
    lab: '全部',
    val: 0,
    badge: {
      value: null
    }
  },
  {
    lab: '待支付',
    val: 1,
    badge: {
      value: null
    }
  },
  {
    lab: '已支付',
    val: 2,
    badge: {
      value: null
    }
  },
  // {
  //   lab: '已到账',
  //   val: 3,
  //   badge: {
  //     value: null
  //   }
  // },

  {
    lab: '已取消',
    val: 7,
    badge: {
      value: null
    }
  }

]